<?php
include_once $_SERVER['DOCUMENT_ROOT'].'HelmesWorkTest/frontend/controller/eventfinders/EventFinder.php';
/**
 * Description of PersonSectorInvolvementEventFinder
 *
 * @author Reinowin7
 */
class PersonSectorInvolvementEventFinder implements EventFinder
{
    public function findEvent($request) 
    {
        $event = "insertPersonSectorInvolvementPage";

        try 
        {
            if (isset($request["formSubmitted"]) and !empty($request["formSubmitted"]))
            {
                $event = "insertPersonSectorInvolvementFormPostEvent";
            }
        }
        catch (Exception $e) 
        {
            $e->printStackTrace();
        }

        return $event;
    }
}

?>
